
using System.Data.Entity.ModelConfiguration;

namespace OBUCare.Core.Models.Mapping
{
    public class TRANSFER_BILL_DETAILMap : EntityTypeConfiguration<TRANSFER_BILL_DETAIL>
    {
        public TRANSFER_BILL_DETAILMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.REMARK)
                .HasMaxLength(500);

            // Table & Column Mappings
            this.ToTable("TRANSFER_BILL_DETAIL");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.TRANSAFER_BILL_ID).HasColumnName("TRANSAFER_BILL_ID");
            this.Property(t => t.REPAIR_ORDER_ID).HasColumnName("REPAIR_ORDER_ID");
            this.Property(t => t.REMARK).HasColumnName("REMARK");
        }
    }
}
